package model;

import java.sql.Date;

public class Commend {
	int cmid;
	int uid;
	String contents;
	Date datetime;

	public Commend(int cmid, int uid, String contents, Date datetime) {
		super();
		this.cmid = cmid;
		this.uid = uid;
		this.contents = contents;
		this.datetime = datetime;
	}

	public int getCmid() {
		return cmid;
	}

	public void setCmid(int cmid) {
		this.cmid = cmid;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public Date getDatetime() {
		return datetime;
	}

	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}

	@Override
	public String toString() {
		return "Commend [cmid=" + cmid + ", uid=" + uid + ", contents="
				+ contents + ", datetime=" + datetime + "]";
	}

}
